package cn.wqk.rrtf.service;

import cn.wqk.rrtf.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TeacherService {
    /**
     * 查询所有教师信息
     * @return 教师信息结果集
     */
    List<Teacher> searchAllTeacher();

    /**
     * 查询教师信息
     * @param teacher
     * @return 教师信息
     */
    Teacher searchTeacher(Teacher teacher);

    /**
     * 根据课程编号查询教师信息
     * @param courseId
     * @return 该教师信息
     */
    Teacher searchTeacherByCourseId(Integer courseId);

    /**
     * 根据教师Id修改该教师的密码
     * @param teacher
     * @return
     */
    int updateTeacherInfo(Teacher teacher);
}
